package day04;
import java.util.Scanner;
public class ScoreLevel {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入成绩:");
        double socre = scan.nextDouble();
        System.out.println("用户的成绩为:"+socre);
        if (socre<0 || socre>100){
            System.out.println("成绩不合法");
        }else if (socre>=90){
            System.out.println( "成绩等级为：A" );
        }else if (socre>=80){
            System.out.println( "成绩等级为：B" );
        }else if (socre>=60){
            System.out.println( "成绩等级为：c" );
        }else {
            System.out.println( "成绩等级为：D" );
        }
    }
}
